package sample;

import javafx.scene.control.Label;
import javafx.scene.text.Font;

public class SetFont {

    public static void setFont(Label label,String fontURL,int size) throws Exception{

        label.setFont(Font.loadFont(SetFont.class.getResource(fontURL).openStream(),size));

    }



}
